package com.gxa.modules.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gxa.modules.dto.AddressEmployeeDTO;
import com.gxa.modules.dto.AdvancedSearchDTO;
import com.gxa.modules.entity.Employee;
import com.gxa.modules.service.AddressService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AddressServiceMapper extends BaseMapper<Employee> {
    Page<AddressEmployeeDTO> findEmployeeByDepart(@Param("page") Page<AddressEmployeeDTO> iPage, @Param("type") Integer type);

    Page<AddressEmployeeDTO> search(@Param("page") Page<AddressEmployeeDTO> iPage,@Param("type") Integer type,@Param("value") String value);

    Page<AddressEmployeeDTO> findAll(@Param("page") Page<AddressEmployeeDTO> iPage,@Param("state")Integer state);

    Page<AddressEmployeeDTO> searchIn(@Param("page") Page<AddressEmployeeDTO> iPage, @Param("state") Integer onTheJob,@Param("value") String value);

    Page<AddressEmployeeDTO> advancedSearchIn(@Param("page") Page<AddressEmployeeDTO> iPage,@Param("search") AdvancedSearchDTO advancedSearchDTO);


//
}
